#define _CRT_SECURE_NO_WARNINGS

#include <Windows.h>
#include <iostream>
#include <time.h>
#include "BlipController.h"
#include "GravityGame.h"

#define r(x) ( rand() % x)
#define num_blips 5000

LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
VOID CALLBACK Timer( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime );

UINT timer;

bool lbutton;
bool rbutton;

int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, PSTR lpszCmdParam, int nCmdShow ) {
	MSG msg;

	GravityGame gg( &hInst, nCmdShow );
	gg.StartGame();

	while (GetMessage( &msg, NULL, 0, 0))
	{
		TranslateMessage (&msg);
		DispatchMessage (&msg);
	}
	return (int)(msg.wParam);
}